<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>JS代码的位置</title>
    <script type="text/javascript">
        document.write("I love");
    </script>
</head>
<body>
<script type="text/javascript">
    document.write("javascript");
</script>
</body>
</html>